Skip to content

Cape Town | 25-ITP-May | Asanda Dunn | Sprint 1 | Coursework/sprint 1#1392

Open
asandagwala wants to merge 18 commits into
CodeYourFuture:mainfrom
asandagwala:coursework/sprint-1
Open

Cape Town | 25-ITP-May | Asanda Dunn | Sprint 1 | Coursework/sprint 1#1392
asandagwala wants to merge 18 commits into
CodeYourFuture:mainfrom
asandagwala:coursework/sprint-1

Conversation

@asandagwala

@asandagwala asandagwala commented Jun 23, 2026

Copy link
Copy Markdown
  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

This is Sprint 1 of the Structuring and testing data module.
Note on Commit Contributors: >
You might notice two different contributor names in the commit history for this branch. I recently shared my laptop with someone else, and my initial commits were accidentally stamped with their Git profile details.
I have since corrected my global Git configuration, but the earlier commits still reflect the old metadata. All code on this branch was written entirely by me.

@asandagwala asandagwala added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Structuring-And-Testing-Data The name of the module. labels Jun 23, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jun 29, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work exploring the stretch goals here.

I've left some comments for you to look at in the interpreting tasks




// a) There are 2 function calls in this code. replaceAll() in line 4 and 5 and console.log() in line 10

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work finding these. Are there any more functions on line 4/5?


// d) In line 4 the totalHours is calculated by subtracting the remainingMinutes from the totalMinutes and then dividing that answer by 60

// e) It is a string representing the time movie time in hours, minutes and seconds

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think the variable name "result" is clear enough that this is what the string represents?


// e) It is a string representing the time movie time in hours, minutes and seconds

// f) yes, because the variables for calculating the results use a formulas that will work with any number that is assigned to the movieLength variable No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will run without errors, but are there any edge cases that give odd outputs?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Structuring-And-Testing-Data The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants